package com.sanerzone.smscenter.api.entity;

/**
 * 封装结果
 * @param <A>
 *
 */
public class ProcessResult<A> {
    private A data;
    private String phones;
    private ApiResult apiResult;//需要返回的响应的结果对象
    private int resultFlag=1;//表示处理的结果  0表示失败 默认1    2标记有部分失败

    public ProcessResult(int resultFlag){
        this.resultFlag=resultFlag;
    }

    public ProcessResult(){}

    public String getPhones() {
        return phones;
    }

    public void setPhones(String phones) {
        this.phones = phones;
    }

    public A getData() {
        return data;
    }

    public void setData(A data) {
        this.data = data;
    }


    public ApiResult getApiResult() {
        return apiResult;
    }

    public void setApiResult(ApiResult apiResult) {
        this.apiResult = apiResult;
    }

    public int getResultFlag() {
        return resultFlag;
    }

    public void setResultFlag(int resultFlag) {
        this.resultFlag = resultFlag;
    }
}
